package game.view.assignmentMenu
{
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	
	import game.UIComponent.FoodTypeSquare;
	import game.UIComponent.ScrollBar;
	import game.UIComponent.TabButton;
	import game.common.CustomBitmap;
	import game.managers.LanguageManager;
	import game.utils.Utils;
	
	public class NewTaskType extends Sprite
	{
		private var _titletext:TextField;
		private var _taskonetxt:TextField;
		private var _rewardtxt:TextField;
		private var _rewardnumber:TextField;
		private var _experience:TextField;
		private var _wancheng:CustomBitmap;
		private var _receive:TabButton;
		private var _title:CustomBitmap;
		
		public function NewTaskType()
		{
			init();
		}
		
		private function init():void
		{
			
			_title=new CustomBitmap();
			_title.source="xinshoutitle";
			_title.x=130;
			_title.y=-180;
			addChild(_title);
			
			
			_titletext=Utils.getCommonTextField(LanguageManager.getWord("newtask.title"),18,this.x+20,this.y-80);
			addChild(_titletext);
			
			_receive=new TabButton(LanguageManager.getWord(" "),clickHandler,"getAllBtn");
			_receive.x=_titletext.x+350;
			_receive.y=_titletext.y+50;
			addChild(_receive);
			
			_taskonetxt=Utils.getCommonTextField(LanguageManager.getWord("newtask.one"),20,10,10);
			addChild(_taskonetxt);
			
			_rewardtxt=Utils.getCommonTextField(LanguageManager.getWord("reward"),13,10,33);
			addChild(_rewardtxt);
			
			_rewardnumber=Utils.getTextField(LanguageManager.getWord("reward.newtxtone"), 13);
			_rewardnumber.x=_rewardtxt.x+35;
			_rewardnumber.y=_rewardtxt.y;
			addChild(_rewardnumber);
			
			_experience=Utils.getTextField(LanguageManager.getWord("experience.newtxtone"), 13);
			_experience.x=_rewardnumber.x+80;
			_experience.y=_rewardnumber.y;
			addChild(_experience);
			
			_wancheng=new CustomBitmap();
			_wancheng.source="missionNotDone";
			_wancheng.x=_experience.x+250;	
			_wancheng.y=_experience.y-20;
			addChild(_wancheng);
			
		
		}
		
		private function clickHandler(e:MouseEvent):void
		{
			
		}
	}
	

}